package com.bajiao.vo.order;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("CouponOrderAdmin")
public class CouponOrderAdmin {

    @ApiModelProperty("订单id")
    private String id;

    @ApiModelProperty("订单编号")
    @Excel(name = "订单编号", width = 30)
    private String orderNo;

    @ApiModelProperty("店铺id")
    private String storeId;

    @Excel(name = "用户昵称", width = 30)
    @ApiModelProperty("昵称")
    private String nickname;

    @Excel(name = "用户手机号", width = 30)
    @ApiModelProperty("手机号")
    private String mobile;

    @Excel(name = "优惠券名称", width = 30)
    @ApiModelProperty("优惠券名称")
    private String title;

    @Excel(name = "适用范围", width = 20, replace = {"平台_1", "商家专属_2"})
    @ApiModelProperty("优惠券适用范围")
    private Integer scope;

    @Excel(name = "可用店铺", width = 30)
    @ApiModelProperty("店铺名称")
    private String storeTitle;

    @Excel(name = "优惠券类型", width = 20, replace = {"折扣券_1", "抵扣券_2"})
    @ApiModelProperty("优惠券类型")
    private Integer type;

    @ApiModelProperty("优惠券面额")
    private BigDecimal quota;

    @Excel(name = "优惠券面额", width = 20)
    @ApiModelProperty("优惠券面额")
    private String quotaStr;

    @Excel(name = "订单金额", width = 20)
    @ApiModelProperty("订单金额")
    private BigDecimal orderAmount;

    @Excel(name = "支付金额", width = 20)
    @ApiModelProperty("支付金额")
    private BigDecimal payPrice;

    @Excel(name = "支付时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付时间", required = true, position = 150)
    private Date payTime;

    @Excel(name = "订单状态", width = 20, replace = {"待支付_0", "待使用_1", "已使用_2", "已核销_3", "已过期_4", "退款中_7", "已退款_8", "已取消_9"})
    @ApiModelProperty("状态")
    private Integer status;

    @Excel(name = "下单时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单时间", required = true, position = 150)
    private Date createTime;

    @Excel(name = "核销时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "核销时间", required = true, position = 150)
    private Date verifyTime;
}
